home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / Anwender / Office / BurnIt_V2 / Install / Install_BurnIt_V2 < prev    next >
Text File  |  1998-12-06  |  7KB  |  379 lines

  1. ;
  2. ; $VER: Install BurnIt V2.02 Demo (06.12.1998)
  3. ; This Install-script contains to BurnIt V2.20 Demo ©1996-1998 by DnS
  4. ;
  5. (if (= (exists "Env:Language") 1)
  6.     ; GetEnv reports "String too long" if the variable doesn't exist! :(
  7.     (set @language (getenv "language"))
  8. )
  9.  
  10. ;**************************************************************************
  11. ; Procedures
  12. (procedure copy-catalog
  13.     (set catalog
  14.         (tackon "T:Catalogs"
  15.         (tackon language "BurnIt_V2.catalog")
  16.         )
  17.     )
  18.     (set destination (tackon "Locale:Catalogs" language))
  19.  
  20.     (copyfiles
  21.         (prompt (#copy catalog destination))
  22.         (source catalog)
  23.         (dest   destination)
  24.         (help   @copyfiles-help)
  25.     )
  26. )
  27.  
  28. ;**************************************************************************
  29. ; English Installation
  30.  
  31. (set default-lang 1)
  32.  
  33. ;(if (= @language "français")
  34. ;    (set default-lang 4)
  35. ;)
  36.  
  37. (set #bad-kick
  38.     "You must have AmigaOS Release 3.0 or newer to use BurnIt V2."
  39. )
  40.  
  41. (set #bad-cpu
  42.     "You must have a 68020 CPU or biger to use BurnIt V2."
  43. )
  44.  
  45. (set #welcome
  46.     (cat
  47.         "\n\n\nWelcome to the BurnIt V2 installation.\n\n"
  48.         "   BurnIt V2.20 Demo ©1996-1998, DnS."
  49.     )
  50. )
  51.  
  52. (set #install-parts "Please select the parts you wish to install")
  53.  
  54. (set #item-BurnIt_V2 "BurnIt_V2")
  55.  
  56. (set #item-BurnIt_V2-guide "T:BurnIt_E_V2.guide")
  57.  
  58. (set #item-locale "Translations")
  59.  
  60. (set #item-prefs "Clear old prefs")
  61.  
  62. (set #where-BurnIt_V2
  63.     (cat
  64.         "Where do you wish to install BurnIt V2.\n The directory 'BurnIt_V2' will be created if it is not there."
  65.     )
  66. )
  67.  
  68. (set #which-language "Which languages should be installed?")
  69.  
  70. (set #copy "Copying %s to %s...")
  71.  
  72. (set #help "no help available...")
  73.  
  74. (set #regis "BurnIt V2 Registration")
  75.  
  76. ;**************************************************************************
  77. ; Deutsche Installation
  78.  
  79. (if (= @language "deutsch")
  80.     (
  81.         (set default-lang 2)
  82.  
  83.         (set #bad-kick
  84.             (cat
  85.                 "Tut mir Leid!\n"
  86.                 "Aber Sie müßen AmigaOS Release 3.0 oder neur haben für BurnIt V2."
  87.             )
  88.         )
  89.         (set #bad-cpu
  90.             (cat
  91.                 "Tut mir Leid!\n"
  92.                 "Aber Sie müßen eine 68020 CPU oder größer haben für BurnIt V2."
  93.             )
  94.         )
  95.         (set #welcome
  96.             (cat
  97.                 "\n\n\nWillkommen zu der Installation von BurnIt V2.\n\n"
  98.                 "BurnIt V2.20 Demo ©1996-1998 DnS."
  99.             )
  100.         )
  101.  
  102.         (set #install-parts "Wählen Sie bitte die Teile, die Sie installieren wollen.")
  103.  
  104.         (set #item-BurnIt_V2 "BurnIt_V2")
  105.  
  106.         (set #item-BurnIt_V2-guide "T:BurnIt_D_V2.guide")
  107.  
  108.         (set #item-locale "Kataloge")
  109.  
  110.         (set #item-prefs "Lösche alte Preferences")
  111.  
  112.         (set #where-BurnIt_V2 "Wo wollen sie BurnIt V2 installieren ?\n Ein Verzeichnis 'BurnIt_V2' wird erstellt.")
  113.  
  114.         (set #which-language "Welche Sprachen sollen installiert werden?")
  115.  
  116.         (set #copy "Kopiere %s nach %s...")
  117.  
  118.         (set #help "Keine Hilfe verfügbar...")
  119.  
  120.         (set #regis "BurnIt V2 registrieren...")
  121.  
  122.     )
  123. )
  124.  
  125. ;**************************************************************************
  126. ; the installaion script
  127.  
  128. (set @default-dest "")
  129. ;(set @default-source "")
  130.  
  131. ; Check Kickstart version. Exit if not at least 3.0
  132. (if (< (/ (getversion) 65536) 39)
  133.         (abort #bad-kick)
  134. )
  135.  
  136. ; Check CPU. Exit if < 60020
  137. (if (patmatch "68020" (database "cpu"))
  138.         (abort #bad-cpu)
  139. )
  140.  
  141. (message #welcome)
  142.  
  143. (welcome)
  144.  
  145. (set install-files
  146.     (askoptions
  147.         (prompt #install-parts)
  148.         (help   @askoptions-help)
  149.         (choices
  150.             #item-BurnIt_V2
  151.             #item-BurnIt_V2-guide
  152.             #item-locale
  153.             #item-prefs
  154.         )
  155.         (default 15)
  156.     )
  157. )
  158.  
  159. (if (IN install-files 0)
  160.     (set BurnIt_V2-dest
  161.         (askdir
  162.             (prompt  #where-BurnIt_V2)
  163.             (help    @askdir-help)
  164.             (default "Work:")
  165.         )
  166.     )
  167. )
  168.  
  169. (set where BurnIt_V2-dest)
  170.  
  171. (if
  172.     (<
  173.         (exists
  174.             (tackon BurnIt_V2-dest "BurnIt_V2")
  175.         )
  176.     2)
  177.     (makedir
  178.         (tackon BurnIt_V2-dest "BurnIt_V2")
  179.         (infos)
  180.     )
  181. )
  182.  
  183. (if
  184.     (<
  185.         (exists
  186.             (tackon BurnIt_V2-dest "BurnIt_V2/Operators")
  187.         )
  188.     2)
  189.     (makedir
  190.         (tackon BurnIt_V2-dest "BurnIt_V2/Operators")
  191.         (infos)
  192.     )
  193. )
  194.  
  195. (if
  196.     (<
  197.         (exists
  198.             (tackon BurnIt_V2-dest "BurnIt_V2/BurnIt_Drivers")
  199.         )
  200.     2)
  201.     (makedir
  202.         (tackon BurnIt_V2-dest "BurnIt_V2/BurnIt_Drivers")
  203.         (infos)
  204.     )
  205. )
  206.  
  207. (set where (tackon BurnIt_V2-dest "BurnIt_V2"))
  208. (set drivers (tackon BurnIt_V2-dest "BurnIt_V2/BurnIt_Drivers"))
  209. (set operators (tackon BurnIt_V2-dest "BurnIt_V2/Operators"))
  210.  
  211. (set @default-dest where)
  212.  
  213. (if (IN install-files 1)
  214.     (set guide-dest @default-dest)
  215. )
  216.  
  217. (set languages 0)
  218.  
  219. (if (IN install-files 2)
  220.     (set lang
  221.         (askoptions
  222.             (prompt  #which-language)
  223.             (help    @askoptions-help)
  224.             (choices
  225.                 "English"
  226.                 "Deutsch"
  227.                 "French"
  228.             )
  229.             (default default-lang)
  230.         )
  231.     )
  232. )
  233.  
  234. ; And now do the actual installation
  235.  
  236. (complete 0)
  237.  
  238. (if (IN install-files 0)
  239.     (copyfiles
  240.         (prompt #copy "BurnIt V2")
  241.         (help   @copyfiles-help)
  242.         (source "BurnIt_V2")
  243.         (dest   @default-dest)
  244.         (infos)
  245.         (noposition)
  246.         (confirm)
  247.     )
  248. )
  249.  
  250. (complete 25)
  251.  
  252. (if (IN install-files 0)
  253.     (copylib
  254.         (prompt (#copy "dragdrop.library" "Libs:"))
  255.         (help @copylib-help)
  256.         (source "libs/dragdrop.library")
  257.         (dest "Libs:")
  258.         (confirm)
  259.     )
  260. )
  261.  
  262. (complete 30)
  263.  
  264. (if (IN install-files 0)
  265.     (copyfiles
  266.         (source "c/lhex")
  267.         (dest "T:")
  268.         (nogauge)
  269.     )
  270. )
  271.  
  272. (if (IN install-files 0)
  273.     (copyfiles
  274.         (source "BurnIt_AddOn.lha")
  275.         (dest "T:")
  276.         (nogauge)
  277.     )
  278. )
  279.  
  280. (complete 35)
  281.  
  282. (if (IN install-files 0)
  283.     (working "Decompressing AddOns...\n\n\n")
  284. )
  285.  
  286. (if (IN install-files 0)
  287.     (run "T:lhex >NIL: <NIL: -qfw=T: x T:BurnIt_AddOn.lha")
  288. )
  289.  
  290. (complete 40)
  291.  
  292. (if (IN install-files 0)
  293.     (copyfiles
  294.         (prompt (#copy "Drivers" @default-dest))
  295.         (source "T:BurnIt_Drivers")
  296.         (all)
  297.         (dest   drivers)
  298.         (help   @copyfiles-help)
  299.         (confirm)
  300.     )
  301. )
  302.  
  303. (if (IN install-files 0)
  304.     (copyfiles
  305.         (prompt (#copy "Operators" @default-dest))
  306.         (source "T:Operators")
  307.         (all)
  308.         (dest   operators)
  309.         (help   @copyfiles-help)
  310.         (confirm)
  311.     )
  312. )
  313.  
  314. (complete 50)
  315.  
  316. (if (IN install-files 1)
  317.     (
  318.         (copyfiles
  319.             (prompt (#copy #item-BurnIt_V2-guide guide-dest))
  320.             (source #item-BurnIt_V2-guide)
  321.             (help   @copyfiles-help)
  322.             (dest   guide-dest)
  323.             (newname "BurnIt_V2.guide")
  324.             (noposition)
  325.             (infos)
  326.             (confirm)
  327.         )
  328.     )
  329. )
  330.  
  331. (complete 75)
  332.  
  333. (if (IN install-files 2)
  334.     (
  335.         (if (IN lang 1)
  336.             (
  337.                 (set language "Deutsch")
  338.                 (copy-catalog)
  339.             )
  340.         )
  341.         (if (IN lang 2)
  342.             (
  343.                 (set language "français")
  344. ;                (copy-catalog)
  345.             )
  346.         )
  347.     )
  348. )
  349. (set BurnIticon_V2-dest (tackon @default-dest "BurnIt_V2"))
  350.  
  351. (complete 90)
  352.  
  353. (if (IN install-files 3)
  354.     (
  355.         (if
  356.             (=
  357.                 (exists (tackon @default-dest "Settings_V2/BurnItPrefs.pref"))
  358.             1)
  359.             (delete (tackon @default-dest "Settings_V2/BurnItPrefs.pref"))
  360.         )
  361.         (if
  362.             (=
  363.                 (exists (tackon @default-dest "Settings_V2/BurnItISOPrefs.pref"))
  364.             1)
  365.             (delete (tackon @default-dest "Settings_V2/BurnItISOPrefs.pref"))
  366.         )
  367.     )
  368. )
  369.  
  370. (complete 95)
  371.  
  372. ; Clean Up
  373.  
  374. (delete "T:" (all) (safe))
  375.  
  376. (complete 100)
  377. (exit)
  378.  
  379.